package com.cloud.api.upms.enums;

import com.cloud.common.core.result.RespEnum;
import lombok.Getter;

/**
 * Author:  xuanning
 * Date:    2023/2/2 16:18
 */
@Getter
public enum RoleExceptionEnum implements RespEnum {

    ROLENAME_EXIST("1201","角色名已存在，不能重复添加"),
    ROLECODE_EXIST("1202","角色编码已存在，不能重复添加"),
    ROLE_NOT_EXIST("1203","角色不存在"),

    ;
    private String code;
    private String msg;

    RoleExceptionEnum(String code, String msg){
        this.code=code;
        this.msg=msg;
    }
}
